package com.sun.huazhi.aitaskservice.common.utils;

/**
 * 文件类型拦截器
 */
public class FileTypeValidator {
    public static boolean isAllowedContentType(String contentType) {
        return contentType != null && (
                contentType.equals("audio/wav") ||
                        contentType.equals("audio/mpeg") ||
                        contentType.equals("image/png") ||
                        contentType.equals("image/jpeg")
        );
    }
}
